import { createRouter, createWebHistory } from 'vue-router';
import Home from '../components/HelloWorld.vue';
import Login from '../components/Login.vue';
import Shop from '../components/Shop.vue';
import Contract from '../components/Contract.vue';


const routes = [
    {
        path: '/',
        name: 'Home',
        component: Home
    },
    {
        path: '/login',
        name: 'Login',
        component: Login
    },
    {
        path: '/shop',
        name: 'Shop',
        component: Shop
    },
    {
        path: '/contract',
        name: 'Contract',
        component: Contract
    },

    // 添加更多路由...
];

const router = createRouter({
    history: createWebHistory(process.env.BASE_URL),
    routes
});

export default router;
